package com.ksd.web.controller.m3beans;

import com.ksd.common.config.PlayControlConfig;
import lombok.Data;

import java.util.List;

@Data
public class GetTunerAssignmentRequest {
    private String method;
    private GetTunerAssignmentParameter parameters;
    private String  token;
    private Integer type;
    private String user;

    public static GetTunerAssignmentRequest getSavePrfDataRequest(String method) {
        GetTunerAssignmentRequest savePrfDataRequest = new GetTunerAssignmentRequest();
//        savePrfDataRequest.setToken("weiyun");
//        savePrfDataRequest.setUser("weiyun");
//        savePrfDataRequest.setToken("admin");
//        savePrfDataRequest.setUser("admin");
        savePrfDataRequest.setToken(PlayControlConfig.getToken());
        savePrfDataRequest.setUser(PlayControlConfig.getUser());
        savePrfDataRequest.setType(1);
        savePrfDataRequest.setMethod(method);

        return savePrfDataRequest;
    }
}
